set "basePath=%cd%"
set "systemPath=%basePath%/system"

REM Environments and Agent Jars are generally in here
set "jarsPath=%systemPath%/environmentJars"
REM Debug
echo %systemPath%
REM Path to all of the RL-Viz libraries and stuff
set "libPath=%systemPath%/libraries"
set "rlvizlibPath_dir=%systemPath%/libraries/rl-viz"
set "rlVizLibPath=%rlvizlibPath_dir%/RLVizLib.jar"
set "VIZAPP_JAR=%rlvizlibPath_dir%/RLVizApp.jar"
set "ENVSHELL_JAR=%rlvizlibPath_dir%/EnvironmentShell.jar"
set "AGENTSHELL_JAR=%rlvizlibPath_dir%/AgentShell.jar"


set "glueExe=%systemPath%/build/bin/rl_glue.exe"

set guiLib=%libPath%/forms-1.1.0.jar

set "pKillScript=taskkill /f /im"

set "ENV_AGENT_JARS_PATH=%jarsPath%"

REM Java stuff
REM based on ttp://stackoverflow.com/questions/4781772/how-to-test-if-an-executable-exists-in-the-path-from-a-windows-batch-file
for %%X in (java.exe) do (set java_exe=%%~$PATH:X)
if not defined java_exe (
    REM set it manually
    set "java_exe=C:\Program Files (x86)\Java\jre7\bin\java.exe"
)
